﻿<Page x:Name="page"
	x:Class="Runa.Metro.LoadingPage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:local="using:Runa.Metro"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d">
	
	<Page.Resources>
		<Storyboard x:Name="TrLogo">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="image">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.608"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.4" Value="0.756"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="image">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.608"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.4" Value="0.756"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="image">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-211.253"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.4" Value="-189.016"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="progressRing">
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.4" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Name="LayerOut">
			<!--<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="page">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
			</DoubleAnimationUsingKeyFrames>-->
			<FadeOutThemeAnimation TargetName="page"/>
		</Storyboard>
	</Page.Resources>

	<Grid x:Name="MainLayer" Background="#C8C8C8">
		<!--<Canvas x:Name="ImageLayer">
			<Image x:Name="image" Source="Assets/SplashScreen.png" Height="300" Canvas.Left="372" Canvas.Top="235" Width="623" Stretch="Fill" RenderTransformOrigin="0.5,0.5" >
				<Image.RenderTransform>
					<CompositeTransform/>
				</Image.RenderTransform>
			</Image>
			<ProgressRing x:Name="progressRing" Height="139" Canvas.Left="599" Canvas.Top="341" Width="139" Foreground="#FFFF540E" IsActive="True" Opacity="0"/>
		</Canvas>-->

		<Image x:Name="image" Source="Assets/SplashScreen.png" Height="300"  Width="620" Stretch="Fill" RenderTransformOrigin="0.5,0.5" >
			<Image.RenderTransform>
				<CompositeTransform/>
			</Image.RenderTransform>
		</Image>
		<ProgressRing x:Name="progressRing" Height="150" Width="150" Foreground="#FFFF540E" IsActive="True" Opacity="0"/>
	</Grid>
</Page>